﻿using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using Sqo;

namespace EDMD
{

    /// [Generated Jan 31 2011]
    [Serializable()]
    public partial class i_Calendar : Utils, ISqoDataObject
    {

        #region "private fields"

        private int _Calendar_ID;
        private string _CalendarName;
        private string _GUID;

        #endregion

        #region "public properties"

        public int Calendar_ID
        {
            get { return _Calendar_ID; }
            set { _Calendar_ID = value; }
        }
        public string CalendarName
        {
            get { return _CalendarName; }
            set { _CalendarName = value; }
        }
        public string GUID
        {
            get { return _GUID; }
            set { _GUID = value; }
        }

        #endregion


        #region "ISqoDataObject"
        object ISqoDataObject.GetValue(System.Reflection.FieldInfo field) { return field.GetValue(this); }
        void ISqoDataObject.SetValue(System.Reflection.FieldInfo field, object value) { field.SetValue(this, value); }

        int ISqoDataObject.OID { get { return Calendar_ID; } set { } }
        #endregion
    }


    public partial class s_Calendar : i_Calendar
    {
        #region "MAPPER"
        public static EDMD.i_Calendar Convert(Calendar od_Calendar)
        {
            return new EDMD.i_Calendar()
            {

                Calendar_ID = IsNull(od_Calendar.Calendar_ID),
                CalendarName = IsNull(od_Calendar.CalendarName),
                GUID = IsNull(od_Calendar.GUID),

            };
        }
        #endregion
    }
}

